Note that solar panels, even ín the US are currently heavily subsidized both by China and by the US (no or negative tarrifs on import). Most states also subsidize the installation cost.
Still, it really depends on where you live whether they make sense, even after all the rebates, a decent installation that would cover my house is in the $50k range. My entire house is electrified, my house has had 3 heat pumps with electric heat backup for like 30+ years, 2 electric stove/ovens, 4 fridges/freezers, 2 dishwashers, 2 water heaters, dryer/washer etc. - it is power hungry. I have a 300A service and it’s being maxed out between the two living units. The backup heat alone can consume 100A when it is too cold for the heat pumps to work, they stop being efficient around the freezing point, they stop being able to heat at about +5C for the old ones to about -5C for the one replaced last year.
Still I pay between $50 in summer and $200 in peak winter for energy for 2 ‘families’ (nuclear sourced power is very cheap). A payment plan over the expected lifespan of a solar panel (5-10 years) with sufficiently sized battery pack to provide in the winter months (I’d have to clean snow off my roof daily) is more expensive than that.
And I don’t even have 4-5 EV chargers I will need once my children are old enough to drive, that alone needs another 200A which simply isn’t available. I don’t have a tankless water heater the green nuts would like you to use (this consumes a lot more peak power), I don’t even have a pool, let alone a heated pool.
Even in summer, you need about 20 solar panels with a decent battery and still have grid backup to power my house at night, let alone the 50-100 extra panels and battery if I needed to be off grid and provide sufficient power during winter.